<template>
  <div class="scroll">
    <div class="scroll_box">
      <slot></slot>
    </div>
  </div>
</template>

<script>
  export default {
    name: "Scroll"
  }
</script>

<style scoped>
  .scroll{
    float: left;
    height: 480px;
    overflow:hidden;
  }
  .scroll_box{
    overflow-x: hidden;
    overflow-y: scroll;
    font-size: .7rem;
    font-family: "\5FAE\8F6F\96C5\9ED1",Helvetica,"黑体",Arial,Tahoma;
    height: 100%;
  }
  /*滚动条样式*/
  .scroll_box::-webkit-scrollbar {
    width: 4px;
    /*height: 4px;*/
  }
  .scroll_box::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
    background: rgba(0,0,0,0.05);
  }
  .scroll_box::-webkit-scrollbar-track {
    border-radius: 0;
    background: transparent;

  }
</style>
